package com.music.service;

import com.music.pojo.Artist;
import com.laoxuai.ibatis.util.PageInfo;
import com.music.pojo.Tag;

import java.util.List;


public interface ArtistService{

    /**
     * 新增
     * @param artist
     * @return
     */
    int     insert(Artist artist);

    /**
     * 主键删除
     * @param id
     * @return
     */
    int delete(Integer id);

    /**
     * 主键修改
     * @param artist
     * @return
     */
    int update(Artist artist);

    /**
     * 主键获取
     * @param id
     * @return
     */
    Artist getByPrimaryKey(Integer id);

    /**
     * 逻辑分页+条件
     * @param artist
     * @param page
     * @param size
     * @return
     */
    List<Artist> listPage(Artist artist, int page, int size);

    /**
     * 物理分页+条件
     * @param artist
     * @param page
     * @param size
     * @return
     */
    PageInfo<Artist> listPageInfo(Artist artist, int page, int size);

    List<Artist> selectByExample(Artist artist);

    List<Artist> selectAll();
}